package com.winston.bigdecimal;

import java.math.BigDecimal;

/**
 * created by winston on 2024/4/3
 */
public class BDTest {
    public static void main(String[] args) {
        BigDecimal v1 = new BigDecimal(0.1F);
        BigDecimal v2 = BigDecimal.valueOf(0.1F);
        BigDecimal v3 = new BigDecimal("0.1");
        System.out.println(v1.compareTo(v2));
        System.out.println(v2.compareTo(v3));
        System.out.println(v1.compareTo(v3));

    }
}
